<?php
//DEFAULT Lang
$lang = "en";
if(!isset($_SESSION['lang']))
{
	$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
	$_SESSION['lang'] = $lang;
	
}
else
{
	$lang = $_SESSION['lang'];
}

//DEFAULT
$LangScript = "<script src=\"scripts/lang/lang_en.js\"></script>";

switch ($lang){
    case "se":
	//echo "PAGE SE";
       $LangScript = "<script src=\"scripts/lang/lang_se.js\"></script>";
	break;
    default:
	//echo "PAGE EN - Setting Default";
	$LangScript = "<script src=\"scripts/lang/lang_en.js\"></script>";
	break;
}
?>